	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shm32read__write_file
_shm32read__write_file:                 ## @shm32read__write_file
	.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
	movq	%rsi, %rax
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	movq	%rax, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.3:
	movl	-16(%rbp), %eax
	movq	_B43_MAX_SHM_ROUTING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_4
## %bb.5:
	movl	-12(%rbp), %ecx
	movq	_B43_MAX_SHM_ADDR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	ja	LBB0_4
## %bb.6:
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_8
## %bb.7:
	andl	$1, %ecx
	je	LBB0_8
LBB0_4:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	-12(%rbp), %eax
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%X 0x%X"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_B43_MAX_SHM_ROUTING,4,2        ## @B43_MAX_SHM_ROUTING
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_B43_MAX_SHM_ADDR,4,2           ## @B43_MAX_SHM_ADDR
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.no_dead_strip	_shm32read__write_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shm32read__write_file
_shm32read__write_file:                 ; @shm32read__write_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x8
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _B43_MAX_SHM_ROUTING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _B43_MAX_SHM_ROUTING@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.hi	LBB0_6
; %bb.2:
	ldr	w9, [sp, #8]
Lloh5:
	adrp	x10, _B43_MAX_SHM_ADDR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _B43_MAX_SHM_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	b.hi	LBB0_6
; %bb.3:
Lloh8:
	adrp	x10, _B43_SHM_SHARED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _B43_SHM_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	and	w9, w9, #0x1
	cmp	w8, w10
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #0
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	w8, [sp, #8]
	str	w8, [x9, #4]
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%X 0x%X"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_B43_MAX_SHM_ROUTING,4,2        ; @B43_MAX_SHM_ROUTING
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_B43_MAX_SHM_ADDR,4,2           ; @B43_MAX_SHM_ADDR
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.no_dead_strip	_shm32read__write_file
.subsections_via_symbols
