	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_fweh_register            ## -- Begin function brcmf_fweh_register
	.p2align	4, 0x90
_brcmf_fweh_register:                   ## @brcmf_fweh_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %eax
	movq	(%rdi), %rcx
	movl	%esi, %esi
	cmpq	$0, (%rcx,%rsi,8)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_bphy_err
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rdx, (%rcx,%rsi,8)
	movq	_TRACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_brcmf_fweh_event_name
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_brcmf_dbg
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event code %d already registered\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_TRACE,4,2                      ## @TRACE
L_.str.1:                               ## @.str.1
	.asciz	"event handler registered for %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_fweh_register            ; -- Begin function brcmf_fweh_register
	.p2align	2
_brcmf_fweh_register:                   ; @brcmf_fweh_register
	.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	x8, x1
	ldr	x9, [x0]
	ldr	x10, [x9, w1, uxtw #3]
	cbz	x10, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_bphy_err
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	w10, w8
	str	x2, [x9, x10, lsl #3]
Lloh5:
	adrp	x9, _TRACE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TRACE@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x9]
	mov	x0, x8
	bl	_brcmf_fweh_event_name
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_brcmf_dbg
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event code %d already registered\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_TRACE,4,2                      ; @TRACE
l_.str.1:                               ; @.str.1
	.asciz	"event handler registered for %s\n"

.subsections_via_symbols
