	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_update_mac_addr ## -- Begin function wpa_supplicant_update_mac_addr
	.p2align	4, 0x90
_wpa_supplicant_update_mac_addr:        ## @wpa_supplicant_update_mac_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, 28(%rdi)
	movl	(%rdi), %eax
	je	LBB0_2
## %bb.1:
	movq	_WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
LBB0_2:
	movq	_WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_7:
	movq	%rbx, %rdi
	callq	_wpa_drv_get_mac_addr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	4(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_os_memcpy
LBB0_9:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	movl	4(%rbx), %esi
	callq	_l2_packet_get_own_addr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_wpa_msg
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_12:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_wpa_sm_set_own_addr
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	16(%rbx), %rdi
	callq	_l2_packet_deinit
	movl	24(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_wpa_drv_get_mac_addr
	movq	_ETH_P_EAPOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_wpa_supplicant_rx_eapol@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movq	%rax, %rsi
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_l2_packet_init
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_L2_PACKET_FILTER_PKTTYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_l2_packet_set_packet_filter
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_wpa_dbg
	jmp	LBB0_9
LBB0_4:
	movl	$-1, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE,4,2 ## @WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE
	.comm	_WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE,4,2 ## @WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE
	.comm	_ETH_P_EAPOL,4,2                ## @ETH_P_EAPOL
	.comm	_wpa_supplicant_rx_eapol,4,2    ## @wpa_supplicant_rx_eapol
	.comm	_L2_PACKET_FILTER_PKTTYPE,4,2   ## @L2_PACKET_FILTER_PKTTYPE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to attach pkt_type filter"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get own L2 address"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_update_mac_addr ; -- Begin function wpa_supplicant_update_mac_addr
	.p2align	2
_wpa_supplicant_update_mac_addr:        ; @wpa_supplicant_update_mac_addr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w9, [x0, #28]
	ldr	w8, [x0]
	cbz	w9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
LBB0_2:
Lloh3:
	adrp	x9, _WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_3:
	mov	x0, x19
	bl	_wpa_drv_get_mac_addr
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_os_memcpy
LBB0_5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w1, [x19, #4]
	bl	_l2_packet_get_own_addr
	cbz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wpa_msg
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	ldp	w1, w0, [x19, #4]
	bl	_wpa_sm_set_own_addr
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x0, [x19, #16]
	bl	_l2_packet_deinit
	ldr	w20, [x19, #24]
	mov	x0, x19
	bl	_wpa_drv_get_mac_addr
	mov	x1, x0
Lloh14:
	adrp	x8, _ETH_P_EAPOL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETH_P_EAPOL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _wpa_supplicant_rx_eapol@GOTPAGE
Lloh18:
	ldr	x8, [x8, _wpa_supplicant_rx_eapol@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x4, x19
	mov	w5, #0
	bl	_l2_packet_init
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.11:
Lloh20:
	adrp	x8, _L2_PACKET_FILTER_PKTTYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _L2_PACKET_FILTER_PKTTYPE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_l2_packet_set_packet_filter
	cbz	x0, LBB0_5
; %bb.12:
Lloh23:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_dbg
	b	LBB0_5
LBB0_13:
	mov	w0, #-1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE,4,2 ; @WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE
	.comm	_WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE,4,2 ; @WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE
	.comm	_ETH_P_EAPOL,4,2                ; @ETH_P_EAPOL
	.comm	_wpa_supplicant_rx_eapol,4,2    ; @wpa_supplicant_rx_eapol
	.comm	_L2_PACKET_FILTER_PKTTYPE,4,2   ; @L2_PACKET_FILTER_PKTTYPE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to attach pkt_type filter"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get own L2 address"

.subsections_via_symbols
