	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_set_wiphy_params
_brcmf_cfg80211_set_wiphy_params:       ## @brcmf_cfg80211_set_wiphy_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_wiphy_to_cfg
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_cfg_to_ndev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movl	(%rbx), %edi
	callq	_check_vif_up
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	_WIPHY_PARAM_RTS_THRESHOLD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rax
	movq	(%r12), %rsi
	cmpq	%rsi, (%rax)
	jne	LBB0_14
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	_WIPHY_PARAM_FRAG_THRESHOLD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.5:
	movq	(%r13), %rax
	movq	8(%r12), %rsi
	cmpq	%rsi, 8(%rax)
	je	LBB0_7
## %bb.6:
	movq	%rsi, 8(%rax)
	movq	%r14, %rdi
	callq	_brcmf_set_frag
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
LBB0_7:
	movq	_WIPHY_PARAM_RETRY_LONG@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_10
## %bb.8:
	movq	(%r13), %rax
	movq	16(%r12), %rsi
	cmpq	%rsi, 16(%rax)
	je	LBB0_10
## %bb.9:
	movq	%rsi, 16(%rax)
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_brcmf_set_retry
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
LBB0_10:
	movq	_WIPHY_PARAM_RETRY_SHORT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_16
## %bb.11:
	movq	(%r13), %rax
	movq	24(%r12), %rsi
	cmpq	%rsi, 24(%rax)
	movq	_TRACE@GOTPCREL(%rip), %r15
	je	LBB0_17
## %bb.12:
	movq	%rsi, 24(%rax)
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_brcmf_set_retry
	movq	%rax, %rbx
	jmp	LBB0_17
LBB0_13:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_18
LBB0_14:
	movq	%rsi, (%rax)
	movq	%r14, %rdi
	callq	_brcmf_set_rts
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movq	_TRACE@GOTPCREL(%rip), %r15
LBB0_17:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_brcmf_dbg
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_EIO,8,3                        ## @EIO
	.comm	_WIPHY_PARAM_RTS_THRESHOLD,4,2  ## @WIPHY_PARAM_RTS_THRESHOLD
	.comm	_WIPHY_PARAM_FRAG_THRESHOLD,4,2 ## @WIPHY_PARAM_FRAG_THRESHOLD
	.comm	_WIPHY_PARAM_RETRY_LONG,4,2     ## @WIPHY_PARAM_RETRY_LONG
	.comm	_WIPHY_PARAM_RETRY_SHORT,4,2    ## @WIPHY_PARAM_RETRY_SHORT
L_.str.1:                               ## @.str.1
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_cfg80211_set_wiphy_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_cfg80211_set_wiphy_params
_brcmf_cfg80211_set_wiphy_params:       ; @brcmf_cfg80211_set_wiphy_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	bl	_wiphy_to_cfg
	mov	x22, x0
	bl	_cfg_to_ndev
	mov	x19, x0
	bl	_netdev_priv
	mov	x23, x0
Lloh0:
	adrp	x24, _TRACE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TRACE@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x23]
	bl	_check_vif_up
	cbz	w0, LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _WIPHY_PARAM_RTS_THRESHOLD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WIPHY_PARAM_RTS_THRESHOLD@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x22]
	ldr	x9, [x8]
	ldr	x1, [x20]
	cmp	x9, x1
	b.ne	LBB0_5
LBB0_3:
	mov	x23, #0
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	neg	x23, x8
	b	LBB0_16
LBB0_5:
	str	x1, [x8]
	mov	x0, x19
	bl	_brcmf_set_rts
	mov	x23, x0
	cbz	x0, LBB0_15
LBB0_6:
Lloh10:
	adrp	x8, _WIPHY_PARAM_FRAG_THRESHOLD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WIPHY_PARAM_FRAG_THRESHOLD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x22]
	ldr	x9, [x8, #8]
	ldr	x1, [x20, #8]
	cmp	x9, x1
	b.eq	LBB0_9
; %bb.8:
	str	x1, [x8, #8]
	mov	x0, x19
	bl	_brcmf_set_frag
	mov	x23, x0
	cbz	x0, LBB0_15
LBB0_9:
Lloh13:
	adrp	x8, _WIPHY_PARAM_RETRY_LONG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WIPHY_PARAM_RETRY_LONG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.10:
	ldr	x8, [x22]
	ldr	x9, [x8, #16]
	ldr	x1, [x20, #16]
	cmp	x9, x1
	b.eq	LBB0_12
; %bb.11:
	str	x1, [x8, #16]
	mov	x0, x19
	mov	w2, #1
	bl	_brcmf_set_retry
	mov	x23, x0
	cbz	x0, LBB0_15
LBB0_12:
Lloh16:
	adrp	x8, _WIPHY_PARAM_RETRY_SHORT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WIPHY_PARAM_RETRY_SHORT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_15
; %bb.13:
	ldr	x8, [x22]
	ldr	x9, [x8, #24]
	ldr	x1, [x20, #24]
	cmp	x9, x1
	b.eq	LBB0_15
; %bb.14:
	str	x1, [x8, #24]
	mov	x0, x19
	mov	w2, #0
	bl	_brcmf_set_retry
	mov	x23, x0
LBB0_15:
	ldr	w0, [x24]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_EIO,8,3                        ; @EIO
	.comm	_WIPHY_PARAM_RTS_THRESHOLD,4,2  ; @WIPHY_PARAM_RTS_THRESHOLD
	.comm	_WIPHY_PARAM_FRAG_THRESHOLD,4,2 ; @WIPHY_PARAM_FRAG_THRESHOLD
	.comm	_WIPHY_PARAM_RETRY_LONG,4,2     ; @WIPHY_PARAM_RETRY_LONG
	.comm	_WIPHY_PARAM_RETRY_SHORT,4,2    ; @WIPHY_PARAM_RETRY_SHORT
l_.str.1:                               ; @.str.1
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_cfg80211_set_wiphy_params
.subsections_via_symbols
